import request from "@/api/request";
import { data } from "~/server"; // /public/server
const baseUrl = data.baseUrl + ""; // 添加代理(本地在vite.config.js添加，服务器在nginx添加)

export function testNodeGet(param) {
  return request({
    url: baseUrl + "/nodeTestGet",
    method: "get",
    params: param,
  });
}

export function TestNodePost(data) {
  return request({
    url: baseUrl + "/nodeTestPost",
    method: "post",
    data,
  });
}

export function testPyScript(param) {
  return request({
    url: baseUrl + "/py/script",
    method: "get",
    params: param,
  });
}
